package face.pay.dao;

import face.pay.entity.AgencyLevel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Auther: zkj
 * @Date: 2019/7/8 16:38
 * @Description:
 */
@Mapper
public interface AgencyLevelDao {


    void insert(AgencyLevel agencyLevel);

    void update(AgencyLevel agencyLevel);

    @Select("select  count(*) from agency_level where oem_id=#{oemId}")
    Integer countByOemId(@Param(value = "oemId") Integer oemId);

    List<AgencyLevel> queryListByOemId(@Param(value = "oemId") Integer oemId);

    AgencyLevel getById(@Param(value = "id") Integer id);

}
